home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1987 February
/
64er_Magazin_87-02_1987_Markt__Technik_de_Side_B.d64
/
lores editor
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
3KB
|
109 lines
10 a=a+1:ifa=1thenload"lores",8,8
15 ifa=2thenload"mpkopier",8,8
20 poke53281,0:poke2,6
21 print"[147][154]lores editor
30 [153]"by helmut burgemeister
40 print"1. bild laden
50 [153]"2. bild speichern
60 print"3. bild editieren
70 [153]"4. bild einfaerben
80 print"5. dos kommandos
100 [151]198,0:[146]198,1:[161]a$
110 a[178][197](a$)
120 [139]a$[179]"1"[176]aa$[177]"5"[167]100
130 [145]a[137]1000,2000,3000,4000,5000
1000 [153]"loadbild laden"
1010 [133]"bildname";b$
1020 [153]"mit farbe laden (j/n)
1030 gosub9000
1040 ifa$<>"j"anda$<>"n"then1030
1050 ifa$="j"thenfa=1:goto1100
1060 fa=0
1100 poke2,6:sys828+6:open2,8,2,b$+",p,r":gosub8000:close2:ifa<>0then20
1105 open2,8,2,b$+",p,r"
1110 get#2,a$:get#2,a$
1120 fort=0to999
1130 get#2,a$:ifa$=""thena$=" "
1140 poke1024+t,asc(a$)
1150 next
1160 close2:sys828
1170 iffa=0thengoto20
1180 open2,8,2,b$+".,p,r":gosub8000:close2:ifa<>0then20
1185 open2,8,2,b$+".,p,r"
1190 get#2,a$:get#2,a$
1200 fort=0to999
1210 get#2,a$:ifa$=""thena$=" "
1220 poke55296+t,asc(a$):next:close2
1230 sys828+12:goto20
2000 print"[147]bild sichern
2010 [133]"bildname";b$
2020 [153]"mit farbe sichern (j/n)
2030 gosub9000
2040 ifa$<>"j"anda$<>"n"then2030
2050 ifa$="j"thenfa=1:goto2100
2060 fa=0
2100 sys828+3:open2,8,2,b$+",p,w":gosub8000:close2:ifa<>0then20
2105 open2,8,2,"@:"+b$+",p,w"
2110 print#2,chr$(0);:print#2,chr$(4);
2120 fort=0to999
2140 print#2,chr$(peek(1024+t));
2150 next:print#2,chr$(13)
2160 close2
2170 iffa=0thengoto20
2175 sys828+9
2180 open2,8,2,b$+".,p,w":gosub8000:close2:ifa<>0then20
2185 open2,8,2,"@:"+b$+".,p,w"
2190 print#2,chr$(0);:print#2,chr$(216);
2200 fort=0to999
2220 print#2,chr$(peek(55296+t));:next:close2
2230 goto20
3000 poke2,6:sys828+3:sys828+6
3010 x=40:y=24:c=6:poke53280,p
3020 ify/2<>int(y/2)thenz=y-1:goto3022
3021 z=y
3022 h=peek(1024+((x/2)+(40*(z/2))))
3025 ifp=0orp=1thensys49152,x,y,1,c
3027 ifp=0orp=2thensys49152,x,y,0,c
3030 ifp=0thenpoke1024+((x/2)+(40*(z/2))),h
3040 j=peek(56320)
3050 if(jand1)=0theny=y-1:ify=-1theny=0
3060 if(jand2)=0theny=y+1:ify=50theny=49
3070 if(jand4)=0thenx=x-1:ifx=-1thenx=0
3080 if(jand8)=0thenx=x+1:ifx=80thenx=79
3090 if(jand16)=0thenp=p+1:poke53280,p:ifp=3thenp=0:poke53280,p
3095 ifpeek(203)=1thensys828:goto20
3097 ifpeek(203)=6thenpoke2,peek(55296)+1:sys828+6:c=peek(2)
3098 ifpeek(2)>253thenpoke2,0
3099 ifpeek(203)=4thenpoke53281,peek(53281)-1
3100 goto3020
4000 iffa=0thenprint"[147]farbe im speicher uebernehmen (j/n)
4002 [139]fa[178]0[167][141]9000:[139]a$[178]"j"[167]fa[178]1
4010 [158]828[170]3:[151]2,6:[158]828[170]6:p[178]0:f[178]0
4015 [139]fa[178]1[167][158]828[170]9
4017 x[178]20:y[178]12:c[178]6:[151]53280,p
4020 h[178][194](55296[170]x[170]40[172]y)
4030 [139]p[178]0[167][151]55296[170]x[170]40[172]y,h[171]1
4040 [139]p[178]0[167][151]55296[170]x[170]40[172]y,h
4050 [139]p[178]1[167][151]55296[170]x[170]40[172]y,f
4053 j[178][194](56320)
4055 [139](j[175]1)[178]0[167]y[178]y[171]1:[139]y[178][171]1[167]y[178]0
4060 [139](j[175]2)[178]0[167]y[178]y[170]1:[139]y[178]25[167]y[178]24
4070 [139](j[175]4)[178]0[167]x[178]x[171]1:[139]x[178][171]1[167]x[178]0
4080 [139](j[175]8)[178]0[167]x[178]x[170]1:[139]x[178]40[167]x[178]39
4090 [139](j[175]16)[178]0[167]p[178]1[171]p:[151]53280,p
4100 [139][194](203)[178]5[167]f[178]f[170]1
4110 [139][194](203)[178]1[167][158]828[170]12:[137]20
4120 [139][194](203)[178]4[167][151]53281,[194](53281)[171]1
4130 [139][194](203)[178]6[167][151]2,[194](55296)[171]1:[158]828[170]6:h[178][194](2)
4140 [139]h[177]254[167][151]2,0:h[178]0
4150 [137]4020
5000 [153]"loaddos kommandos
5010 print"command: ";:poke631,34:poke198,1:inputa$
5020 open1,8,15:print#1,a$:close1:gosub8000:goto20
8000 open1,8,15:input#1,a,a$,b,c
8010 ifa<>0thenprint"status: "a" "a$" "b" "c
8020 close1:ifa<>0thengosub9000
8030 return
9000 poke198,0:wait198,1:geta$:return
10000 printpeek(203);:goto10000